﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<div class="fr-widget white-space" style="width: 50%">
        <div class="header">
            <span class="icon"></span><span>
                <%=ForumContext.GetText("LOGIN","PAGE_NAME") %></span>
        </div>
        <%using (Html.BeginForm("LogIn", "Member", FormMethod.Post, new { @id = "Login", @onRequest = "$.MvcForum.showLoading()", @onSuccess = "$.MvcForum.ajaxSuccess(msg);$.MvcForum.hideLoading()" }))
          {
  
        %>
        <%=Html.AntiForgeryTokenX("LOGIN")%>
        <input type="hidden" value="<%=Request.QueryString["returnUrl"] %>" id="_returnUrl" name="_returnUrl" />
        <table cellpadding="0" cellspacing="1" width="100%">
            <tr>
                <td class="table-cell width30">
                    <%=ForumContext.GetText("LOGIN","USER_NAME") %>
                </td>
                <td class="table-cell">
                    <input id="_user" name="_user" class="input {validate:{required:true}}" type="text" />
                </td>
            </tr>
            <tr>
                <td class="table-cell">
                    <%=ForumContext.GetText("LOGIN","PASSWORD") %>
                </td>
                <td class="table-cell">
                    <input id="_pwd" name="_pwd" class="input {validate:{required:true}}" type="password" />
                </td>
            </tr>
            <tr>
                <td class="table-cell">
                    &nbsp;
                </td>
                <td class="table-cell">
                    <input type="checkbox" id="_auto" name="_auto" /><label for="_auto"><%=ForumContext.GetText("LOGIN", "REMEMBER_LOGIN")%></label>
                </td>
            </tr>
            <tr>
                <td class="table-cell">
                    &nbsp;
                </td>
                <td class="table-cell">
                    <input type="button" onclick="$.MvcForum.ajaxSubmit('Login');" value=" <%=ForumContext.GetText("LOGIN","LOGIN") %>"
                        class="button" />
                </td>
            </tr>
            <tr>
                <td class="table-cell center" colspan="2">
                    <a href="<%=ForumContext.GetAbsoluteUrl(ForumUrls.LOST_PWD) %>">
                        <%=ForumContext.GetText("LOGIN","LOST_PWD") %></a> | <a href="<%=ForumContext.GetAbsoluteUrl(ForumUrls.REQUEST_ACTIVE_CODE) %>">
                            <%=ForumContext.GetText("LOGIN", "REQUEST_ACTIVE_CODE")%></a>
                </td>
            </tr>
        </table>
        <%}  %>
    </div>

